<?php

class appserver_control_console extends dzf_base_control {
    
    public function __construct() {
        parent::__construct();
    }
    
    public function action_index() {
        global $_G;
        
        
        $modelconsole = DZF::m('console');
        if($modelconsole->member) {
            $subconsole = in_array($_GET['console'], array('index', 'xxx')) ? $_GET['console'] : 'index';
            $control = DZF::c('console_'.$subconsole);
            $method = "action_".$_GET['action'];
            $control->$method();
        } else {
            $this->action_login();
        }
    }
    
    public function action_login() {
        echo 'login';
    }
}
